package org.dromara.system.domain.bo;

import org.dromara.system.domain.JwBuyList;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 采购申请清单业务对象 jw_buy_list
 *
 * @author Lion Li
 * @date 2024-04-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = JwBuyList.class, reverseConvertGenerate = false)
public class JwBuyListBo extends BaseEntity {

    /**
     * 
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 采购单编号
     */
    @NotBlank(message = "采购单编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String buyId;

    /**
     * 采购单标题
     */
    @NotBlank(message = "采购单标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 
     */
    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 采购类型
     */
    @NotBlank(message = "采购类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 描述
     */
    @NotBlank(message = "描述不能为空", groups = { AddGroup.class, EditGroup.class })
    private String description;

    /**
     * 审批状态
     */
    @NotBlank(message = "审批状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;


}
